package com.aloda.mapper;

import com.aloda.dto.CategoryPageDTO;
import com.aloda.entity.Category;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {


    Page<Category> pageQuery(CategoryPageDTO categoryPageDTO);

    @Select("select * from supermarket.category")
    List<Category> query();
}
